package com.jiegui.business.service.impl;

import java.util.List;
import com.jiegui.common.utils.DateUtils;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.jiegui.business.mapper.AddressInfoMapper;
import com.jiegui.business.domain.AddressInfo;
import com.jiegui.business.service.AddressInfoService;

/**
 * 收货地址信息Service业务层处理
 * 
 * @author wuqicheng
 * @date 2024-11-20
 */
@Service
public class AddressInfoServiceImpl extends ServiceImpl<AddressInfoMapper, AddressInfo> implements AddressInfoService
{
    @Resource
    private AddressInfoMapper addressInfoMapper;

    /**
     * 查询收货地址信息
     * 
     * @param id 收货地址信息主键
     * @return 收货地址信息
     */
    @Override
     public AddressInfo selectAddressInfoById(String id)
    {
        return addressInfoMapper.selectById(id);
    }

    /**
     * 查询收货地址信息列表
     * 
     * @param addressInfo 收货地址信息
     * @return 收货地址信息
     */
    @Override
    public List<AddressInfo> selectAddressInfoList(AddressInfo addressInfo)
    {
        return addressInfoMapper.selectAddressInfoList(addressInfo);
    }

    /**
     * 新增收货地址信息
     * 
     * @param addressInfo 收货地址信息
     * @return 结果
     */
    @Override
    public  int insertAddressInfo(AddressInfo addressInfo)
    {
        return addressInfoMapper.insert(addressInfo);
    }

    /**
     * 修改收货地址信息
     * 
     * @param addressInfo 收货地址信息
     * @return 结果
     */
    @Override
    public  int updateAddressInfo(AddressInfo addressInfo)
    {

        return addressInfoMapper.updateById(addressInfo);
    }




}
